package com.zzyl.service;

import com.aliyun.iot20180120.models.DeleteDeviceRequest;
import com.aliyun.iot20180120.models.QueryDeviceDetailRequest;
import com.aliyun.iot20180120.models.QueryDevicePropertyStatusRequest;
import com.aliyun.iot20180120.models.QueryThingModelPublishedRequest;
import com.zzyl.base.PageResponse;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceVo;
import com.zzyl.vo.ProductVo;
import com.zzyl.vo.QueryThingModelPublishedVo;

import java.util.List;

/**
 * @Description DeviceService
 * @Author 聆听
 * @Date 2025-09-10
 */
public interface DeviceService {
    /**
     * 从物联网平台同步产品列表
     */
    void syncProductList();

    List<ProductVo> allProduct();

    void addProduct(DeviceDto deviceDto);

    PageResponse<DeviceVo> findByPage(DevicePageQueryDto devicePageQueryDto);

    DeviceVo findByIdKey(QueryDeviceDetailRequest queryDeviceDetailRequest);

    QueryThingModelPublishedVo QueryThingModelPublished(QueryThingModelPublishedRequest request);

    Object QueryDevicePropertyStatus(QueryDevicePropertyStatusRequest request);

    void updateDevice(DeviceDto deviceDto);

    void deleteDevice(DeleteDeviceRequest deleteDeviceRequest);
}
